<?php

class Game extends CI_Controller
{
    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->model('games_model');
    }
    
    public function index()
    {
        //redirect('customer/index',"location");
        $data['games'] = $this->games_model->load();
        $data['page_name'] = 'GM';
        $this->load->view('templates/header',$data);
        $this->load->view('game/index',$data);
        $this->load->view('templates/footer');
    }
}
?>
